"""
安装所需的依赖包
"""

import subprocess
import sys
import os

def install_dependencies():
    """安装项目所需的所有依赖"""
    packages = [
        "fastapi",
        "uvicorn",
        "pydantic",
        "aiohttp",
        "rich",
        "langchain",
        "langchain-openai",
        "langgraph",
        "langchain-tavily"
    ]
    
    print("正在安装依赖...")
    subprocess.check_call([sys.executable, "-m", "pip", "install"] + packages)
    print("依赖安装完成!")

if __name__ == "__main__":
    install_dependencies()
